import request from '@/utils/request'

export function queryEnterprise(params) {
  return request({
    url: '/account_enterprise/queryEnterprise',
    method: 'get',
    params
  })
}

export function addEnterprise(params) {
  delete params.entId
  return request({
    url: '/enterprise/addEnterprise',
    method: 'get',
    params
  })
}

export function searchEnterprise(params) {
  return request({
    url: '/enterprise/seaechEnterprise',
    method: 'get',
    params
  })
}

export function modifiedEnterprise(params) {
  params.image = 'no'
  return request({
    url: '/enterprise/modifiyEnterprise',
    method: 'get',
    params
  })
}

export function deleteEnterprise(params) {
  return request({
    url: '/enterprise/delEnterprise',
    method: 'get',
    params
  })
}

export function getSingleEnterprise(params) {
  return request({
    url: '/enterprise/getEnterprise',
    method: 'get',
    params
  })
}

export function modifiedEnterpriseLogo(params) {
  return request({
    url: '/enterprise/modifiyEnterprise',
    method: 'get',
    params
  })
}

export function getAllEnterprise(params) {
  return request({
    url: '/enterprise/getAllEnterprise',
    method: 'get',
    params
  })
}

export function addEnetrpriseImage(params) {
  return request({
    url: '/enterpriseImage/addEnetrpriseImage',
    method: 'get',
    params
  })
}

export function delEnterpriseImage(params) {
  return request({
    url: '/enterpriseImage/delEnterpriseImage',
    method: 'get',
    params
  })
}

export function getAccountByEnt(params) {
  return request({
    url: '/account_enterprise/getAccountByEnt',
    method: 'get',
    params
  })
}

export function modifyAccountEnterpriseByEntId(params) {
  return request({
    url: '/account_enterprise/modifyAccountEnterpriseByEntId',
    method: 'get',
    params
  })
}
